async function errorAsyncFunc() {
    try {
        throw new Error('Async function error')
    } catch (e) {
        throw e
    }
}

errorAsyncFunc()
